<?php
// src/Asiah/SiklusBundle/Entity/Label.php
namespace Asiah\SiklusBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * @ORM\Entity(repositoryClass="Asiah\SiklusBundle\Repository\LabelRepository")
 * @ORM\Table(name="label")
 */

class Label {
	public function __construct(){

	}

	/**
	 * @ORM\Id
	 * @ORM\Column(type="integer")
	 * @ORM\GeneratedValue(strategy="AUTO")
	 */
	protected $id;
	/**
	 * @ORM\Column(type="string", unique=true, length="30")
	 */
	protected $nama;
	/**
	 * @ORM\ManyToMany(targetEntity="Bookmark", mappedBy="labels")
	 */
	protected $bookmarks;

	/**
	 * Get id
	 *
	 * @return integer 
	 */
	public function getId()
	{
		return $this->id;
	}

	/**
	 * Set nama
	 *
	 * @param string $nama
	 */
	public function setNama($nama)
	{
		$this->nama = $nama;
	}

	/**
	 * Get nama
	 *
	 * @return string 
	 */
	public function getNama()
	{
		return $this->nama;
	}

	/**
	 * Add bookmarks
	 *
	 * @param Asiah\SiklusBundle\Entity\Bookmark $bookmarks
	 */
	public function addBookmark(\Asiah\SiklusBundle\Entity\Bookmark $bookmarks)
	{
		$this->bookmarks[] = $bookmarks;
	}

	/**
	 * Get bookmarks
	 *
	 * @return Doctrine\Common\Collections\Collection 
	 */
	public function getBookmarks()
	{
		return $this->bookmarks;
	}
}
